package com.itboye.lottery.bean;

import android.support.annotation.NonNull;

import java.io.Serializable;

public class CodeBean implements Serializable ,Comparable<CodeBean>{
    private int codeValue;
    private String codeText;
    private boolean select;
    private int type;//0：红色 1:红色脱码 2：蓝色

    public int getCodeValue() {
        return codeValue;
    }

    public void setCodeValue(int codeValue) {
        this.codeValue = codeValue;
    }

    public boolean isSelect() {
        return select;
    }

    public void setSelect(boolean select) {
        this.select = select;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getCodeText() {
        return codeText;
    }

    public void setCodeText(String codeText) {
        this.codeText = codeText;
    }

    @Override
    public int compareTo(@NonNull CodeBean codeBean) {
        return Integer.valueOf(codeValue).compareTo(Integer.valueOf(codeBean.codeValue));
    }
}
